<script lang="ts" setup name="SettingVip">
import { ref } from "vue";

interface Params {
  dialogVisible: boolean;
  row: any;
  title: string;
}
const prop = ref<Params>({
  dialogVisible: false,
  row: {},
  title: ""
});

const acceptParams = (params: Params) => {
  prop.value.dialogVisible = params.dialogVisible;
  prop.value.row = params.row;
  prop.value.title = params.title;
};

defineExpose({
  acceptParams
});
</script>

<template>
  <div>
    <el-dialog v-model="prop.dialogVisible" :title="prop.title" width="30%">
      <span>{{ prop.row }}</span>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="prop.dialogVisible = false">取消</el-button>
          <el-button type="primary" @click="prop.dialogVisible = false"> 确定 </el-button>
        </span>
      </template>
    </el-dialog>
  </div>
</template>

<style lang="scss" scoped></style>
